<?php
namespace app\msgapi\controller;

use app\msgapi\service\HsmenuService;

class Hsmenu extends Base
{
    public function __construct(HsmenuService $service)
    {
        parent::__construct($service);
        $this->service = $service;
    }

    public function index()
    {
        return $this->service->getLists();
    }

    public function edit(int $id = 0)
    {
        return $this->service->getRows($id);
    }
}